<!-- Copyright (c) 2019-2020 十三 all rights reserved. -->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="header::head-fragment('NewBee商城-搜索','search')">
</head>
<body>
<header th:replace="header::header-fragment"></header>
<!-- nav -->
<nav th:replace="header::nav-fragment"></nav>

<div>
    <br><br>
    <h4 style="margin-left: 200px">搜索,"<span th:text="${str}"></span>"</h4>
</div>

<!--排序-->
<div class="sort">
    <br><br><br>
</div>

<div class="goods_item center">
    <div class="main center">
        <th:block th:if="${results}==null">
            <img style="margin-top: 16px;padding: 16px 20px;" th:src="@{image/null-content.png}">
        </th:block>
            <th:block th:each="goods : ${results}">
                <div class="item_card_frame">
                    <div class="item_card"><a th:href="@{'/book?bookid='+${goods.getId()}}" target="_blank"><img
                            th:src="@{${goods.getBookImg()}}" th:alt="${goods.getBookName()}"></a></div>
                    <div class="item_brand"><a th:href="@{'/book?bookid='+${goods.getId()}}" target="_blank"
                                               th:text="${goods.getBookName()}">newbee.ltd</a></div>
                    <br><br>
                    <div class="item_price" th:text="${goods.getPrice()}">1299.00元</div>
                </div>
            </th:block>
        <div class="clear"></div>
    </div>
</div>

<script th:src="@{js/search.js}" type="text/javascript"></script>
</body>
</html>